﻿@model IEnumerable<AfrikDotnetWebSite.Models.Show>

@{
    ViewBag.Title = "Shows";
}

<h2 class="box">Shows</h2>

<p class="box">
    @Html.ActionLink("Create New", "showadd")
</p>
<table class="box">
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.Image)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Label)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Link)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.IsActive)
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            <img src="~/static/img/shows/@Html.DisplayFor(modelItem => item.Image)" style="width:200px" />
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Label)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Link)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.IsActive)
        </td>
        <td>
            @Html.ActionLink("Edit", "showedit", new { id=item.Id }) |
            @Html.ActionLink("Delete", "showdelete", new { id=item.Id })
        </td>
    </tr>
}

</table>

<div>
    @Html.ActionLink("« Administration", "index")
</div>
